
#include "ui_image/ui_image.h"
#ifdef __cplusplus
extern "C" {
#endif

//窗体对象
static lv_obj_t * fault_win = NULL;
static lv_obj_t * faultATT0 = NULL;
static lv_obj_t * faultATT1 = NULL;

LV_FONT_DECLARE(myFont_font18)
//创建wifi界面
 void gui_fault_win_create(lv_obj_t * parent)
{
	fault_win = parent;//用来模拟窗体

	if(fault_win == NULL ) return;


	lv_obj_t * main_img = lv_img_create(fault_win);
	lv_img_set_src(main_img,&blackButtom);//设置图片源
    lv_obj_set_size(main_img, 240, 240); // 设置对象大小
    lv_obj_center(main_img); // 对象居中显示

	//手环故障图
	lv_obj_t * fault_img = lv_img_create(main_img);
    lv_img_set_src(fault_img,&faultWatch);//设置图片源
    lv_obj_set_size(fault_img, 120, 120); // 设置对象大小
    lv_obj_align(fault_img, LV_ALIGN_CENTER,0, -24);


    faultATT0 =lv_label_create(main_img);//创建label
    lv_label_set_recolor(faultATT0, true);
    lv_obj_align(faultATT0, LV_ALIGN_CENTER, 0, 52);
    lv_obj_set_size(faultATT0,64,20);//设定大小
    lv_label_set_text(faultATT0, "#00EF00 手环异常#");           //字体颜色
    lv_obj_set_style_text_font(faultATT0, &myFont_font18, 0);

    faultATT1 =lv_label_create(main_img);//创建label
    lv_label_set_recolor(faultATT1, true);
    lv_obj_align(faultATT1, LV_ALIGN_CENTER, 0, 76);
    lv_obj_set_size(faultATT1,110,20);//设定大小
    lv_label_set_text(faultATT1, "#FF0000 请及时求助NPC#");           //字体颜色
    lv_obj_set_style_text_font(faultATT1, &myFont_font18, 0);
}

//删除主界面
 void gui_fault_win_dele(void)
 {
    if(fault_win == NULL ) return;
    lv_obj_del(fault_win);
    fault_win =  NULL;
 }


 void gui_fault_win_run(void)
{


}

#ifdef __cplusplus
}
#endif
